package com.pjedu.nbmallshop.service;


import com.pjedu.nbmallcommon.utils.PageResult;
import com.pjedu.nbmallshop.entity.MallCarousel;
import com.pjedu.nbmallshop.vo.MallIndexCarouselVO;

import java.util.HashMap;
import java.util.List;


public interface MallCarouselService {
    /**
     * 后台分页
     *
     * @param pageUtil
     * @return
     */
    PageResult getCarouselPage(HashMap pageUtil);

    String saveCarousel(MallCarousel carousel);

    String updateCarousel(MallCarousel carousel);

    MallCarousel getCarouselById(Integer id);

    Boolean deleteBatch(Integer[] ids);

    /**
     * 返回固定数量的轮播图对象(首页调用)
     *
     * @param number
     * @return
     */
    List<MallIndexCarouselVO> getCarouselsForIndex(int number);
}
